//package com.logistics.relay.contorller;
//
//import com.logistics.relay.entity.RelayDelivery;
//import com.logistics.relay.service.ArtificialRelayService;
//import com.logistics.utils.aspect.annotation.LoggerListener;
//import com.logistics.utils.constants.LoggerMethod;
//import com.logistics.utils.response.ResponseUtil;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping("/lgs/relay")
//public class ArtificialRelayController {
//
//    @Resource
//    ArtificialRelayService service;
//
//    /**
//     * 通过站点码获取站点上物料信息
//     */
//    @GetMapping("/getStationInfo/{code}")
//    @LoggerListener(businessName = "人工接力-获取站点物料信息", methodName = LoggerMethod.SAVE)
//    public ResponseEntity getStationInfo(@PathVariable("code") String code) throws Exception {
//        return ResponseUtil.success(service.getStationInfo(code));
//    }
//
//    /**
//     * 创建配送单
//     */
//    @PostMapping("/createDelivery")
//    @LoggerListener(businessName = "人工接力-创建配送单", methodName = LoggerMethod.SAVE)
//    public ResponseEntity createDelivery(@RequestBody RelayDelivery relayDelivery) throws Exception {
//        service.createDelivery(relayDelivery);
//        return ResponseUtil.success("success");
//    }
//}
